import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.resourceManager.d.ts',
  content: "/*\n * Copyright (c) 2021-2024 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit LocalizationKit\n */\nimport { RawFileDescriptor as _RawFileDescriptor } from './global/rawFileDescriptor';\nimport { Resource as _Resource } from './global/resource';\nimport { AsyncCallback as _AsyncCallback } from './@ohos.base';\nimport { DrawableDescriptor } from './@ohos.arkui.drawableDescriptor';\n/**\n * Provides resource related APIs.\n *\n * @namespace resourceManager\n * @syscap SystemCapability.Global.ResourceManager\n * @since 6\n */\n/**\n * Provides resource related APIs.\n *\n * @namespace resourceManager\n * @syscap SystemCapability.Global.ResourceManager\n * @crossplatform\n * @since 10\n */\n/**\n * Provides resource related APIs.\n *\n * @namespace resourceManager\n * @syscap SystemCapability.Global.ResourceManager\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare namespace resourceManager {\n    /**\n     * Enumerates screen directions.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 6\n     */\n    /**\n     * Enumerates screen directions.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Enumerates screen directions.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export enum Direction {\n        /**\n         * Indicates the vertical direction.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates the vertical direction.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates the vertical direction.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DIRECTION_VERTICAL = 0,\n        /**\n         * Indicates the horizontal direction.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates the horizontal direction.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates the horizontal direction.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DIRECTION_HORIZONTAL = 1\n    }\n    /**\n     * Enumerates device types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 6\n     */\n    /**\n     * Enumerates device types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Enumerates device types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export enum DeviceType {\n        /**\n         * Indicates a phone.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates a phone.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates a phone.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DEVICE_TYPE_PHONE = 0x00,\n        /**\n         * Indicates a tablet.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates a tablet.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Indicates a tablet.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DEVICE_TYPE_TABLET = 0x01,\n        /**\n         * Indicates a car.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates a car.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Indicates a car.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DEVICE_TYPE_CAR = 0x02,\n        /**\n         * Indicates a PC.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates a PC.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Indicates a PC.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DEVICE_TYPE_PC = 0x03,\n        /**\n         * Indicates a smart TV.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates a smart TV.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Indicates a smart TV.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DEVICE_TYPE_TV = 0x04,\n        /**\n         * Indicates a wearable device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates a wearable device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Indicates a wearable device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DEVICE_TYPE_WEARABLE = 0x06,\n        /**\n         * Indicates a 2in1 device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        DEVICE_TYPE_2IN1 = 0x07\n    }\n    /**\n     * Enumerates screen density types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 6\n     */\n    /**\n     * Enumerates screen density types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Enumerates screen density types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export enum ScreenDensity {\n        /**\n         * Indicates small screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates small screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates small screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        SCREEN_SDPI = 120,\n        /**\n         * Indicates medium screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates medium screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates medium screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        SCREEN_MDPI = 160,\n        /**\n         * Indicates large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        SCREEN_LDPI = 240,\n        /**\n         * Indicates extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        SCREEN_XLDPI = 320,\n        /**\n         * Indicates extra-extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates extra-extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates extra-extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        SCREEN_XXLDPI = 480,\n        /**\n         * Indicates extra-extra-extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates extra-extra-extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates extra-extra-extra-large screen density.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        SCREEN_XXXLDPI = 640\n    }\n    /**\n     * Enumerates color mode types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export enum ColorMode {\n        /**\n         * Indicates dark mode.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        DARK = 0,\n        /**\n         * Indicates light mode.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        LIGHT = 1\n    }\n    /**\n     * Provides the device configuration.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 6\n     */\n    /**\n     * Provides the device configuration.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides the device configuration.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export class Configuration {\n        /**\n         * Indicates the screen direction of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates the screen direction of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates the screen direction of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates the screen direction of the current device.\n         *\n         * @type { Direction }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        direction: Direction;\n        /**\n         * Indicates the current system language, for example, zh-Hans-CN.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates the current system language, for example, zh-Hans-CN.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates the current system language, for example, zh-Hans-CN.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates the current system language, for example, zh-Hans-CN.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        locale: string;\n        /**\n         * Indicates the device type.\n         *\n         * @type { DeviceType }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        deviceType: DeviceType;\n        /**\n         * Indicates the screen density.\n         *\n         * @type { ScreenDensity }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        screenDensity: ScreenDensity;\n        /**\n         * Indicates the color mode.\n         *\n         * @type { ColorMode }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        colorMode: ColorMode;\n        /**\n         * Indicates the mcc.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        mcc: number;\n        /**\n         * Indicates the mnc.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        mnc: number;\n    }\n    /**\n     * Provides the device capability.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 6\n     */\n    /**\n     * Provides the device capability.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides the device capability.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export class DeviceCapability {\n        /**\n         * Indicates the screen density of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates the screen density of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates the screen density of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates the screen density of the current device.\n         *\n         * @type { ScreenDensity }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        screenDensity: ScreenDensity;\n        /**\n         * Indicates the type of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Indicates the type of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Indicates the type of the current device.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Indicates the type of the current device.\n         *\n         * @type { DeviceType }\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        deviceType: DeviceType;\n    }\n    /**\n     * The ResourceManager callback.\n     *\n     * @interface AsyncCallback\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 6\n     * @deprecated since 9\n     */\n    export interface AsyncCallback<T> {\n        /**\n         * Defines the callback format.\n         *\n         * @param { Error } err - Indicates the error info.\n         * @param { T } data - Indicates the return data.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n        */\n        (err: Error, data: T): void;\n    }\n    /**\n     * Obtains the ResourceManager object of the current application.\n     *\n     * @param { AsyncCallback<ResourceManager> } callback - Indicates the callback containing the ResourceManager object.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @FAModelOnly\n     * @since 6\n     */\n    /**\n     * Obtains the ResourceManager object of the current application.\n     *\n     * @param { AsyncCallback<ResourceManager> } callback - Indicates the callback containing the ResourceManager object.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @FAModelOnly\n     * @since 11\n     */\n    export function getResourceManager(callback: AsyncCallback<ResourceManager>): void;\n    /**\n     * Obtains the ResourceManager object of the specified application.\n     *\n     * @param { string } bundleName - Indicates the bundle name of the specified application.\n     * @param { AsyncCallback<ResourceManager> } callback - Indicates the callback containing the ResourceManager object.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @FAModelOnly\n     * @since 6\n     */\n    /**\n     * Obtains the ResourceManager object of the specified application.\n     *\n     * @param { string } bundleName - Indicates the bundle name of the specified application.\n     * @param { AsyncCallback<ResourceManager> } callback - Indicates the callback containing the ResourceManager object.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @FAModelOnly\n     * @since 11\n     */\n    export function getResourceManager(bundleName: string, callback: AsyncCallback<ResourceManager>): void;\n    /**\n     * Obtains the ResourceManager object of the current application.\n     *\n     * @returns { Promise<ResourceManager> } The ResourceManager object is returned in Promise mode.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @FAModelOnly\n     * @since 6\n     */\n    /**\n     * Obtains the ResourceManager object of the current application.\n     *\n     * @returns { Promise<ResourceManager> } The ResourceManager object is returned in Promise mode.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @FAModelOnly\n     * @since 11\n     */\n    export function getResourceManager(): Promise<ResourceManager>;\n    /**\n     * Obtains the ResourceManager object of the specified application.\n     *\n     * @param { string } bundleName - Indicates the bundle name of the specified application.\n     * @returns { Promise<ResourceManager> } The ResourceManager object is returned in Promise mode.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @FAModelOnly\n     * @since 6\n     */\n    /**\n     * Obtains the ResourceManager object of the specified application.\n     *\n     * @param { string } bundleName - Indicates the bundle name of the specified application.\n     * @returns { Promise<ResourceManager> } The ResourceManager object is returned in Promise mode.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @FAModelOnly\n     * @since 11\n     */\n    export function getResourceManager(bundleName: string): Promise<ResourceManager>;\n    /**\n     * Obtains a global shared system ResourceManager object that provides access to only system resource, in which the\n     * resConfig is default value(contains resLocale, screenDensityDpi, direction, etc).\n     *\n     * @returns { ResourceManager } The System ResourceManager object is returned.\n     * @throws { BusinessError } 9001009 - Failed to access the system resource.\n     *         which is not mapped to application sandbox, This error code will be thrown.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 10\n     */\n    /**\n     * Obtains a global shared system ResourceManager object that provides access to only system resource, in which the\n     * resConfig is default value(contains resLocale, screenDensityDpi, direction, etc).\n     *\n     * @returns { ResourceManager } The System ResourceManager object is returned.\n     * @throws { BusinessError } 9001009 - Failed to access the system resource.\n     *         which is not mapped to application sandbox, This error code will be thrown.\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export function getSystemResourceManager(): ResourceManager;\n    /**\n     * Provides the capability of accessing application resources.\n     *\n     * @interface ResourceManager\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 6\n     */\n    /**\n     * Provides the capability of accessing application resources.\n     *\n     * @interface ResourceManager\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides the capability of accessing application resources.\n     *\n     * @interface ResourceManager\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export interface ResourceManager {\n        /**\n         * Obtains the character string corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getStringValue\n         */\n        getString(resId: number, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains string resources associated with a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<string> } The character string corresponding to the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getStringValue\n         */\n        getString(resId: number): Promise<string>;\n        /**\n         * Obtains the character string corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the character string corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the character string corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringValue(resource: Resource, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains string resources associated with a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<string> } The character string corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains string resources associated with a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<string> } The character string corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<string> } The character string corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringValue(resource: Resource): Promise<string>;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getStringArrayValue\n         */\n        getStringArray(resId: number, callback: AsyncCallback<Array<string>>): void;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getStringArrayValue\n         */\n        getStringArray(resId: number): Promise<Array<string>>;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayValue(resource: Resource, callback: _AsyncCallback<Array<string>>): void;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayValue(resource: Resource): Promise<Array<string>>;\n        /**\n         * Obtains the content of the media file corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getMediaContent\n         */\n        getMedia(resId: number, callback: AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the content of the media file corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getMediaContent\n         */\n        getMedia(resId: number): Promise<Uint8Array>;\n        /**\n         * Obtains the content of the media file corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContent(resource: Resource, callback: _AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained\n         *                 specified screen density media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained\n         *                 specified screen density media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContent(resource: Resource, density: number, callback: _AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the content of the media file corresponding to a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContent(resource: Resource): Promise<Uint8Array>;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the\n         *                 specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the\n         *                 specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContent(resource: Resource, density: number): Promise<Uint8Array>;\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getMediaContentBase64\n         */\n        getMediaBase64(resId: number, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getMediaContentBase64\n         */\n        getMediaBase64(resId: number): Promise<string>;\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64(resource: Resource, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the\n         *                 specified screen density image resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the\n         *                 specified screen density image resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64(resource: Resource, density: number, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64(resource: Resource): Promise<string>;\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<string> } The Base64 code of the specified screen density image resource corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource object in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<string> } The Base64 code of the specified screen density image resource corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64(resource: Resource, density: number): Promise<string>;\n        /**\n         * Obtains the device capability in callback mode.\n         *\n         * @param { _AsyncCallback<DeviceCapability> } callback - Indicates the asynchronous callback used to return the obtained device capability.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Obtains the device capability in callback mode.\n         *\n         * @param { _AsyncCallback<DeviceCapability> } callback - Indicates the asynchronous callback used to return the obtained device capability.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the device capability in callback mode.\n         *\n         * @param { _AsyncCallback<DeviceCapability> } callback - Indicates the asynchronous callback used to return the obtained device capability.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getDeviceCapability(callback: _AsyncCallback<DeviceCapability>): void;\n        /**\n         * Obtains the device capability in Promise mode.\n         *\n         * @returns { Promise<DeviceCapability> } the device capability.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Obtains the device capability in Promise mode.\n         *\n         * @returns { Promise<DeviceCapability> } the device capability.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the device capability in Promise mode.\n         *\n         * @returns { Promise<DeviceCapability> } the device capability.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getDeviceCapability(): Promise<DeviceCapability>;\n        /**\n         * Obtains the device configuration in callback mode.\n         *\n         * @param { _AsyncCallback<Configuration> } callback - Indicates the asynchronous callback used to return the obtained device\n         *                 configuration.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Obtains the device configuration in callback mode.\n         *\n         * @param { _AsyncCallback<Configuration> } callback - Indicates the asynchronous callback used to return the obtained device\n         *                 configuration.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the device configuration in callback mode.\n         *\n         * @param { _AsyncCallback<Configuration> } callback - Indicates the asynchronous callback used to return the obtained device\n         *                 configuration.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getConfiguration(callback: _AsyncCallback<Configuration>): void;\n        /**\n         * Obtains the device configuration in Promise mode.\n         *\n         * @returns { Promise<Configuration> } the device configuration.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         */\n        /**\n         * Obtains the device configuration in Promise mode.\n         *\n         * @returns { Promise<Configuration> } the device configuration.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the device configuration in Promise mode.\n         *\n         * @returns { Promise<Configuration> } the device configuration.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getConfiguration(): Promise<Configuration>;\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @param { AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the ID string corresponding to the specified number.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getPluralStringValue\n         */\n        getPluralString(resId: number, num: number, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getPluralStringValue\n         */\n        getPluralString(resId: number, num: number): Promise<string>;\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the resource object string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the resource object string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the resource object string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringValueSync\n         */\n        getPluralStringValue(resource: Resource, num: number, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } The singular-plural character string represented by the resource object string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } The singular-plural character string represented by the resource object string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } The singular-plural character string represented by the resource object string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringValueSync\n         */\n        getPluralStringValue(resource: Resource, num: number): Promise<string>;\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the raw file resource.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getRawFileContent\n         */\n        getRawFile(path: string, callback: AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<Uint8Array> } The raw file resource corresponding to the specified resource path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getRawFileContent\n         */\n        getRawFile(path: string): Promise<Uint8Array>;\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { AsyncCallback<RawFileDescriptor> } callback - Indicates the asynchronous callback used to return the raw file resource descriptor.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getRawFd\n         */\n        getRawFileDescriptor(path: string, callback: AsyncCallback<RawFileDescriptor>): void;\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<RawFileDescriptor> } The raw file resource descriptor corresponding to the specified resource path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.getRawFd\n         */\n        getRawFileDescriptor(path: string): Promise<RawFileDescriptor>;\n        /**\n         * Obtains close raw file resource descriptor corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { AsyncCallback<void> } callback - Indicates the asynchronous callback used to return result close raw file resource descriptor.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.closeRawFd\n         */\n        closeRawFileDescriptor(path: string, callback: AsyncCallback<void>): void;\n        /**\n         * Obtains close raw file resource descriptor corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<void> } The result close raw file resource descriptor corresponding to the specified resource path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.resourceManager.closeRawFd\n         */\n        closeRawFileDescriptor(path: string): Promise<void>;\n        /**\n         * Obtains the character string corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the character string corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the character string corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringByName(resName: string, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains string resources associated with a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<string> } The character string corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains string resources associated with a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<string> } The character string corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<string> } The character string corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringByName(resName: string): Promise<string>;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayByName(resName: string, callback: _AsyncCallback<Array<string>>): void;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<Array<string>> } the array of character strings corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<Array<string>> } the array of character strings corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<Array<string>> } the array of character strings corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayByName(resName: string): Promise<Array<string>>;\n        /**\n         * Obtains the content of the media file corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaByName(resName: string, callback: _AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained\n         *                 specified screen density media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained\n         *                 specified screen density media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaByName(resName: string, density: number, callback: _AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the content of the media file corresponding to a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaByName(resName: string): Promise<Uint8Array>;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the\n         *                 specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the\n         *                 specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaByName(resName: string, density: number): Promise<Uint8Array>;\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaBase64ByName(resName: string, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the\n         *                 specified screen density image resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource name in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the\n         *                 specified screen density image resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaBase64ByName(resName: string, density: number, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaBase64ByName(resName: string): Promise<string>;\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<string> } The Base64 code of the specified screen density image resource corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource name in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<string> } The Base64 code of the specified screen density image resource corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaBase64ByName(resName: string, density: number): Promise<string>;\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the name string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the name string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the name string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringByNameSync\n         */\n        getPluralStringByName(resName: string, num: number, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } the singular-plural character string represented by the name string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } the singular-plural character string represented by the name string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } the singular-plural character string represented by the name string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringByNameSync\n         */\n        getPluralStringByName(resName: string, num: number): Promise<string>;\n        /**\n         * Obtains string resources associated with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { string } The character string corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains string resources associated with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { string } The character string corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { string } The character string corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringSync(resId: number): string;\n        /**\n         * Obtains string resources associated with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The character string corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The character string corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringSync(resId: number, ...args: Array<string | number>): string;\n        /**\n         * Obtains string resources associated with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { string } The character string corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains string resources associated with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { string } The character string corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { string } The character string corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringSync(resource: Resource): string;\n        /**\n         * Obtains string resources associated with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The character string corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The character string corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringSync(resource: Resource, ...args: Array<string | number>): string;\n        /**\n         * Obtains string resources associated with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { string } The character string corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains string resources associated with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { string } The character string corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { string } The character string corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringByNameSync(resName: string): string;\n        /**\n         * Obtains string resources associated with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The character string corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001008 - Failed to format the resource obtained based on the resource Name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The character string corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001008 - Failed to format the resource obtained based on the resource Name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringByNameSync(resName: string, ...args: Array<string | number>): string;\n        /**\n         * Obtains the boolean result with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { boolean } The boolean resource corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the boolean result with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { boolean } The boolean resource corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the boolean result with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { boolean } The boolean resource corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getBoolean(resId: number): boolean;\n        /**\n         * Obtains the boolean result with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { boolean } The boolean resource corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the boolean result with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { boolean } The boolean resource corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the boolean result with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { boolean } The boolean resource corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getBoolean(resource: Resource): boolean;\n        /**\n         * Obtains the boolean result with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { boolean } The boolean resource corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the boolean result with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { boolean } The boolean resource corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the boolean result with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { boolean } The boolean resource corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getBooleanByName(resName: string): boolean;\n        /**\n         * Obtains the number result with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { number } The number resource corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the number result with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { number } The number resource corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number result with a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { number } The number resource corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getNumber(resId: number): number;\n        /**\n         * Obtains the number result with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { number } The number resource corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 9\n         */\n        /**\n         * Obtains the number result with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { number } The number resource corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number result with a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { number } The number resource corresponding to the resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getNumber(resource: Resource): number;\n        /**\n         * Obtains the number result with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { number } The number resource corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the number result with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { number } The number resource corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number result with a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { number } The number resource corresponding to the resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getNumberByName(resName: string): number;\n        /**\n         * Obtains release resourceManager.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 7\n         */\n        /**\n         * Obtains release resourceManager.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains release resourceManager.\n         *\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 12\n         */\n        release();\n        /**\n         * Obtains the character string corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the character string corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the character string corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringValue(resId: number, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains string resources associated with a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<string> } The character string corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains string resources associated with a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<string> } The character string corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains string resources associated with a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<string> } The character string corresponding to the resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringValue(resId: number): Promise<string>;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayValue(resId: number, callback: _AsyncCallback<Array<string>>): void;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayValue(resId: number): Promise<Array<string>>;\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the ID string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the ID string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to the\n         * specified number in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character\n         *                 string represented by the ID string corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringValueSync\n         */\n        getPluralStringValue(resId: number, num: number, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to\n         * the specified number in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @returns { Promise<string> } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringValueSync\n         */\n        getPluralStringValue(resId: number, num: number): Promise<string>;\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to\n         * the specified number.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - An integer used to get the correct string for the current plural rules.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getIntPluralStringValueSync(resId: number, num: number, ...args: Array<string | number>): string;\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to the\n         * specified number.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - An integer used to get the correct string for the current plural rules.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getIntPluralStringValueSync(resource: Resource, num: number, ...args: Array<string | number>): string;\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to\n         * the specified number.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - An integer used to get the correct string for the current plural rules.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The singular-plural character string represented by the name string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001008 - Failed to format the resource obtained based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getIntPluralStringByNameSync(resName: string, num: number, ...args: Array<string | number>): string;\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to\n         * the specified number.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - A double parameter used to get the correct string for the current plural rules.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getDoublePluralStringValueSync(resId: number, num: number, ...args: Array<string | number>): string;\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to the\n         * specified number.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - A double parameter used to get the correct string for the current plural rules.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getDoublePluralStringValueSync(resource: Resource, num: number, ...args: Array<string | number>): string;\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to\n         * the specified number.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - A double parameter used to get the correct string for the current plural rules.\n         * @param { Array<string | number> } args - Indicates the formatting string resource parameters.\n         * @returns { string } The singular-plural character string represented by the name string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @throws { BusinessError } 9001008 - Failed to format the resource obtained based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getDoublePluralStringByNameSync(resName: string, num: number, ...args: Array<string | number>): string;\n        /**\n         * Obtains the content of the media file corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContent(resId: number, callback: _AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained\n         *                 specified screen density media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained\n         *                 specified screen density media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContent(resId: number, density: number, callback: _AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the content of the media file corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the content of the media file corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContent(resId: number): Promise<Uint8Array>;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContent(resId: number, density: number): Promise<Uint8Array>;\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image\n         *                 resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64(resId: number, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the\n         *                 specified screen density image resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the\n         *                 specified screen density image resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64(resId: number, density: number, callback: _AsyncCallback<string>): void;\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<string> } the Base64 code of the image resource corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<string> } the Base64 code of the image resource corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<string> } the Base64 code of the image resource corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64(resId: number): Promise<string>;\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<string> } the Base64 code of the specified screen density image resource corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource ID in Promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Promise<string> } the Base64 code of the specified screen density image resource corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64(resId: number, density: number): Promise<string>;\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the raw file resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the raw file resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the raw file resource.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFileContent(path: string, callback: _AsyncCallback<Uint8Array>): void;\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<Uint8Array> } the raw file resource corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<Uint8Array> } the raw file resource corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<Uint8Array> } the raw file resource corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFileContent(path: string): Promise<Uint8Array>;\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<RawFileDescriptor> } callback - Indicates the asynchronous callback used to return the raw file resource descriptor.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<RawFileDescriptor> } callback - Indicates the asynchronous callback used to return the raw file resource descriptor.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<RawFileDescriptor> } callback - Indicates the asynchronous callback used to return the raw file resource descriptor.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFd(path: string, callback: _AsyncCallback<RawFileDescriptor>): void;\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<RawFileDescriptor> } The raw file resource descriptor corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<RawFileDescriptor> } The raw file resource descriptor corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<RawFileDescriptor> } The raw file resource descriptor corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFd(path: string): Promise<RawFileDescriptor>;\n        /**\n         * Obtains close raw file resource descriptor corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<void> } callback - Indicates the asynchronous callback used to return result close raw file resource descriptor.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains close raw file resource descriptor corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<void> } callback - Indicates the asynchronous callback used to return result close raw file resource descriptor.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains close raw file resource descriptor corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<void> } callback - Indicates the asynchronous callback used to return result close raw file resource descriptor.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        closeRawFd(path: string, callback: _AsyncCallback<void>): void;\n        /**\n         * Obtains close raw file resource descriptor corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<void> } The result close raw file resource descriptor corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 9\n         */\n        /**\n         * Obtains close raw file resource descriptor corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<void> } The result close raw file resource descriptor corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains close raw file resource descriptor corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<void> } The result close raw file resource descriptor corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        closeRawFd(path: string): Promise<void>;\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *             to use the density of current system dpi.\n         * @param { number } [type] - The optional parameter means the media type, the default value 0 means\n         *             the normal media.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *             to use the density of current system dpi.\n         * @param { number } [type] - The optional parameter means the media type, the default value 0 means\n         *             the normal media.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getDrawableDescriptor(resId: number, density?: number, type?: number): DrawableDescriptor;\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource Name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *             to use the density of current system dpi.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource Name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *             to use the density of current system dpi.\n         * @param { number } [type] - The optional parameter means the media type, the default value 0 means\n         *             the normal media.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource Name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *             to use the density of current system dpi.\n         * @param { number } [type] - The optional parameter means the media type, the default value 0 means\n         *             the normal media.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getDrawableDescriptorByName(resName: string, density?: number, type?: number): DrawableDescriptor;\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *             to use the density of current system dpi.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *             to use the density of current system dpi.\n         * @param { number } [type] - The optional parameter means the media type, the default value 0 means\n         *             the normal media.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains the DrawableDescriptor of the media file corresponding to a specified resource.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *             to use the density of current system dpi.\n         * @param { number } [type] - The optional parameter means the media type, the default value 0 means\n         *             the normal media.\n         * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getDrawableDescriptor(resource: Resource, density?: number, type?: number): DrawableDescriptor;\n        /**\n         * Obtains the rawfile resource list corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the raw file list.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the rawfile resource list corresponding to the specified resource path in callback mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the raw file list.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFileList(path: string, callback: _AsyncCallback<Array<string>>): void;\n        /**\n         * Obtains the rawfile resource list corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<Array<string>> } The rawfile list corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the rawfile resource list corresponding to the specified resource path in Promise mode.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Promise<Array<string>> } The rawfile list corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFileList(path: string): Promise<Array<string>>;\n        /**\n         * Obtains the color resource corresponding to the specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to\n         *     return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource ID in callback mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to\n         *     return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColor(resId: number, callback: _AsyncCallback<number>): void;\n        /**\n         * Obtains the color resource corresponding to the specified resource ID in promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<number> } Indicates return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource ID in promise mode.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Promise<number> } Indicates return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColor(resId: number): Promise<number>;\n        /**\n         * Obtains the color resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to\n         *     return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to\n         *     return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColor(resource: Resource, callback: _AsyncCallback<number>): void;\n        /**\n         * Obtains the color resource corresponding to the specified resource object in promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<number> } Indicates return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource object in promise mode.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Promise<number> } Indicates return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColor(resource: Resource): Promise<number>;\n        /**\n         * Obtains the color resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to\n         *     return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource object in callback mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to\n         *     return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColorByName(resName: string, callback: _AsyncCallback<number>): void;\n        /**\n         * Obtains the color resource corresponding to the specified resource object in promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<number> } Indicates return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource object in promise mode.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Promise<number> } Indicates return the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColorByName(resName: string): Promise<number>;\n        /**\n         * Obtains the color resource corresponding to the specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { number } Indicates the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { number } Indicates the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColorSync(resId: number): number;\n        /**\n         * Obtains the color resource corresponding to the specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { number } Indicates the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { number } Indicates the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColorSync(resource: Resource): number;\n        /**\n         * Obtains the color resource corresponding to the specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { number } Indicates the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the color resource corresponding to the specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { number } Indicates the integer reference value representing the color data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getColorByNameSync(resName: string): number;\n        /**\n         * Add overlay resources during application runtime.\n         *\n         * @param { string } path - Indicates the application overlay path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001010 - Invalid overlay path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Add overlay resources during application runtime.\n         *\n         * @param { string } path - Indicates the application overlay path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001010 - Invalid overlay path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        addResource(path: string): void;\n        /**\n         * Remove overlay resources during application runtime.\n         *\n         * @param { string } path - Indicates the application overlay path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001010 - Invalid overlay path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Remove overlay resources during application runtime.\n         *\n         * @param { string } path - Indicates the application overlay path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001010 - Invalid overlay path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        removeResource(path: string): void;\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { RawFileDescriptor } The raw file resource descriptor.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the raw file resource descriptor corresponding to the specified resource path.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { RawFileDescriptor } The raw file resource descriptor.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFdSync(path: string): RawFileDescriptor;\n        /**\n         * Close the raw file resource descriptor corresponding to the specified resource path.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Close the raw file resource descriptor corresponding to the specified resource path.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        closeRawFdSync(path: string): void;\n        /**\n         * Obtains the rawfile resource list corresponding to the specified resource path.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Array<string> } The rawfile resource list.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the rawfile resource list corresponding to the specified resource path.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Array<string> } The rawfile resource list.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFileListSync(path: string): Array<string>;\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Uint8Array } the raw file resource corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the raw file resource corresponding to the specified resource path.\n         *\n         * @param { string } path - Indicates the resource relative path.\n         * @returns { Uint8Array } the raw file resource corresponding to the specified resource path.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getRawFileContentSync(path: string): Uint8Array;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { Uint8Array } Indicates the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { Uint8Array } Indicates the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentSync(resId: number, density?: number): Uint8Array;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { Uint8Array } Indicates the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { Uint8Array } Indicates the obtained media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentSync(resource: Resource, density?: number): Uint8Array;\n        /**\n         * Obtains the Base64 code of the specified screen density media file corresponding to the specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { string } Indicates the obtained Base64 code of the media file.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the specified screen density media file corresponding to the specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { string } Indicates the obtained Base64 code of the media file.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64Sync(resId: number, density?: number): string;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to the specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { string } Indicates the obtained Base64 code of the media file.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to the specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                to use the density of current system dpi.\n         * @returns { string } Indicates the obtained Base64 code of the media file.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaContentBase64Sync(resource: Resource, density?: number): string;\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to\n         * the specified number.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @returns { string } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the ID string corresponding to\n         * the specified number.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @param { number } num - Indicates the number.\n         * @returns { string } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringValueSync\n         */\n        getPluralStringValueSync(resId: number, num: number): string;\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to the\n         * specified number.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - Indicates the number.\n         * @returns { string } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the resource object string corresponding to the\n         * specified number.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @param { number } num - Indicates the number.\n         * @returns { string } The singular-plural character string represented by the ID string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringValueSync\n         */\n        getPluralStringValueSync(resource: Resource, num: number): string;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Array<string> } The array of character strings corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { Array<string> } The array of character strings corresponding to the specified resource ID.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayValueSync(resId: number): Array<string>;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Array<string> } The array of character strings corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { Array<string> } The array of character strings corresponding to the specified resource object.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayValueSync(resource: Resource): Array<string>;\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to\n         * the specified number.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - Indicates the number.\n         * @returns { string } The singular-plural character string represented by the name string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the singular-plural character string represented by the name string corresponding to\n         * the specified number.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } num - Indicates the number.\n         * @returns { string } The singular-plural character string represented by the name string\n         *         corresponding to the specified number.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.resourceManager.getIntPluralStringByNameSync\n         */\n        getPluralStringByNameSync(resName: string, num: number): string;\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } [density] - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Uint8Array } The obtained specified screen density media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the content of the specified screen density media file corresponding to a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } [density] - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { Uint8Array } The obtained specified screen density media file content.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaByNameSync(resName: string, density?: number): Uint8Array;\n        /**\n         * Obtains the Base64 code of the specified screen density media file corresponding to the specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } [density] - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { string } The obtained Base64 code of the specified screen density media file.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the Base64 code of the specified screen density media file corresponding to the specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @param { number } [density] - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means\n         *                 to use the density of current system dpi.\n         * @returns { string } The obtained Base64 code of the specified screen density media file.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMediaBase64ByNameSync(resName: string, density?: number): string;\n        /**\n         * Obtains the array of character strings corresponding to a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Array<string> } the array of character strings corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the array of character strings corresponding to a specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { Array<string> } the array of character strings corresponding to the specified resource name.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getStringArrayByNameSync(resName: string): Array<string>;\n        /**\n         * Obtains the device configuration.\n         *\n         * @returns { Configuration } the device configuration.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the device configuration.\n         *\n         * @returns { Configuration } the device configuration.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getConfigurationSync(): Configuration;\n        /**\n         * Obtains the device capability.\n         *\n         * @returns { DeviceCapability } the device capability.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @since 10\n         */\n        /**\n         * Obtains the device capability.\n         *\n         * @returns { DeviceCapability } the device capability.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getDeviceCapabilitySync(): DeviceCapability;\n        /**\n         * Obtains locales list.\n         *\n         * @param { boolean } [includeSystem] - the parameter controls whether to include system resources,\n         *     the default value is false, it has no effect when only system resources query the locales list.\n         * @returns { Array<string> } the list of strings for the locales.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getLocales(includeSystem?: boolean): Array<string>;\n        /**\n         * Obtains the symbol resource corresponding to the specified resource ID.\n         *\n         * @param { number } resId - Indicates the resource ID.\n         * @returns { number } Indicates the integer reference value representing the symbol data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getSymbol(resId: number): number;\n        /**\n         * Obtains the symbol resource corresponding to the specified resource object.\n         *\n         * @param { Resource } resource - Indicates the resource object.\n         * @returns { number } Indicates the integer reference value representing the symbol data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001001 - Invalid resource ID.\n         * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getSymbol(resource: Resource): number;\n        /**\n         * Obtains the symbol resource corresponding to the specified resource name.\n         *\n         * @param { string } resName - Indicates the resource name.\n         * @returns { number } Indicates the integer reference value representing the symbol data.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001003 - Invalid resource name.\n         * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.\n         * @throws { BusinessError } 9001006 - The resource is referenced cyclically.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getSymbolByName(resName: string): number;\n        /**\n         * Whether the rawfile resource is a directory or not.\n         *\n         * @param { string } path - Indicates the rawfile resource relative path.\n         * @returns { boolean } True means the file path is directory, else false.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @throws { BusinessError } 9001005 - Invalid relative path.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isRawDir(path: string): boolean;\n        /**\n         * Get the override ResourceManager object related to the specified Configuration.\n         *\n         * @param { Configuration } [configuration] - Indicates the override Configuration{@link Configuration}\n         * @returns { ResourceManager } The ResourceManager object is returned.\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getOverrideResourceManager(configuration?: Configuration): ResourceManager;\n        /**\n         * Get the current override Configuration related to the specified override ResourceManager.\n         *\n         * @returns { Configuration } The Configuration object is returned.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getOverrideConfiguration(): Configuration;\n        /**\n         * Update the current override Configuration.\n         *\n         * @param { Configuration } configuration - Indicates the override Configuration{@link Configuration}\n         * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.\n         * @syscap SystemCapability.Global.ResourceManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        updateOverrideConfiguration(configuration: Configuration): void;\n    }\n    /**\n     * Contains rawFile descriptor information.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 9\n     */\n    /**\n     * Contains rawFile descriptor information.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Contains rawFile descriptor information.\n     *\n     * @typedef {_RawFileDescriptor}\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export type RawFileDescriptor = _RawFileDescriptor;\n    /**\n     * Contains resource descriptor information.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @since 9\n     */\n    /**\n     * Contains resource descriptor information.\n     *\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Contains resource descriptor information.\n     *\n     * @typedef {_Resource}\n     * @syscap SystemCapability.Global.ResourceManager\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export type Resource = _Resource;\n}\nexport default resourceManager;\n",
}
export default FILE;